package com.jiangkang.example.dto;

import lombok.Data;

import java.io.Serializable;

@Data
public class GlobalResponse<T> implements Serializable{

    /**
	 * 
	 */
    public static final long serialVersionUID = 1L;

	public String status;

    public String errorMsg;

    public T result;
    public GlobalResponse(){
    }

    public GlobalResponse(String status, String errorMsg){
        this.status = status;
        this.errorMsg = errorMsg;
    }

    public GlobalResponse(String status, T t){
        this.status = status;
        this.result = t;
    }
}
